package com.goods.business.mapper;

import com.goods.common.model.business.Product;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.BaseMapper;

import java.util.List;

public interface ProductMapper extends BaseMapper<Product> {
    //根据查询条件查询列表
    List<Product> selectByNameCategoryIdStatus(@Param("name") String name,
                                               @Param("status") String status,
                                               @Param("oneCategoryId") Long oneCategoryId,
                                               @Param("twoCategoryId") Long twoCategoryId,
                                               @Param("threeCategoryId") Long threeCategoryId);

    //修改物资状态
    void updateStatus(@Param("id") Long id,@Param("status") Integer status);
}
